(function (window, $, undefined) {
  'use strict';

  main(function () {

    var $tableFeedBack = $('#table-feedback');
    util.jqGrid($tableFeedBack, {
      url: '/json/test.json',
      datatype: 'json',
      autowidth: true,
      height: $(window).height() - 320,
      multiselect: true,
      multiboxonly: true,
      // shrinkToFit: false,
      colModel: [
        { name: '_id', key: true, hidden: true },
        { label: '用户ID', name: '', width: 100 },
        { label: '手机号', name: '', width: 150 },
        { label: '用户类型', name: '', width: 100 },
        { label: '反馈时间', name: '', width: 150 },
        { label: '反馈内容', name: '', width: 250 },
        { label: '反馈状态', name: '', width: 100 }
      ], 
      pager: '#pager-feedback'
    });

    // 导出
    $('#btn-export').click(function () {
      util.tip.warn('导出操作...');
    });

    // 禁用
    $('#btn-ban').click(function () {
      util.tip.warn('禁用操作...');
    });

  });


})(window, jQuery);
